<%@page import="Model.Supplier.SupplierList"%>
<%@page import="Model.User.UserList"%>
<%@page import="Model.Supplier.SupplierUserView"%>
<%@page import="RssEasy.Core.CookieHelper"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    CookieHelper cookie = new CookieHelper(request, response);
    if (cookie.Get("account") == null) {
        response.sendRedirect("/login/login.jsp");
    }
    else if (cookie.Get("account") == "") {
        response.sendRedirect("/login/login.jsp");
    };
    UserList ult= new UserList(pageContext);
    ult.select("corpname,fulladress").where("myid=?",cookie.Get("myid")).get_first_rows();
    SupplierList suv = new SupplierList(pageContext);
    suv.select("englishname,yong,legal,enterpriseurl,mainproducts,enterprisejs,attr,pattern").where("myid=?",cookie.Get("myid")).get_first_rows();
%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>企企通-空间管理-企业信息</title>
        <meta name="description" content="这里写网站内容描述" />
        <meta name="keywords" content="这里写关键词" />
        <meta name="Robots" contect="all">
        <link href="/css/reset.css" rel="stylesheet" type="text/css" />
        <link href="css/infor.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <h1>完善企业信息，开通企业空间：</h1>
        <form id="form" method="post" class="infor">
            <table>
                <tr><td>企业名称：</td><td><%=ult.get("corpname")%></td></tr>
                <tr><td>企业英文名称：</td><td><input id="englishname" name="englishname" type="text" value="<%=suv.get("englishname")%>" /><label for="englishname"></label></td></tr>
                        <tr><td>企业性质：</td><td>
                                <select name="attr">
                                <option attr="<%suv.write("attr");%>" value="<%suv.write("attr");%>">国营企业</option>
                                <option value="1">国营企业</option>
                                <option value="2">外资企业</option>
                                <option value="3">中外合资企业</option>
                                <option value="4">私营企业</option>
                            </select>
                                <label for="category"></label>   
                            </td></tr>
                        <tr><td>注册资金：</td><td><input type="text" name="yong"  placeholder="请输入注册资金(万元)" value="<%suv.write("yong");%>" id="yong"/><label for="yong"></label></td></tr>
                        <tr><td>法定代表：</td><td><input type="text" name="legal"  placeholder="请输入法定代表人" value="<%suv.write("legal");%>" id="legal"/><label for="legal"></label></td></tr>
                        
                       <tr><td>经营模式：</td>
                           <td>
                                <div>
                                    <input id="pattern" type="hidden" value="<%suv.write("pattern");%>"/>
                                    <label><input type="radio" name="pattern" id="pattern1" value="1" checked/>&nbsp;生产型</label>
                                    <label><input type="radio" name="pattern" id="pattern2" value="2"/>&nbsp;贸易型</label>
                                    <label><input type="radio" name="pattern" id="pattern3" value="3"/>&nbsp;服务型</label>
                                    <label><input type="radio" name="pattern" id="pattern4" value="4"/>&nbsp;政府或其他机构</label>
                                </div>
                            </td></tr>
                        <tr><td>企业网址：</td><td><input type="text" name="enterpriseurl"  placeholder="请输入企业网址" value="<%suv.write("enterpriseurl");%>" id="enterpriseurl"/><label for="enterpriseurl"></label></td></tr>
<!--                        <tr><td>企业所在地：</td><td><select id="province" name="shengid"><option value="" area=""></option></select><select id="city" name="shiid"><option value="" area="">请选择</option></select>-->
<!--                                <select id="district" name="xianid"><option value="" area="">请选择</option></select><label for=""></label></td></tr>-->
<!--                        <tr><td>主要供应产品：</td><td><input  type="text" name="mainproducts"  placeholder="请输入产品" value="" id="mainproducts"/><label for="mainproducts">请填写产品名称，多个产品用逗号隔开</label></td></tr>-->
                        <tr><td>详细地址：</td><td><input type="text" name="fulladress" value="<%ult.write("fulladress");%>"  placeholder="请输入详细地址" id="fulladress"/><label for="fulladress"></label></td></tr>
                        <tr><td>企业介绍：</td><td><textarea placeholder="请输入"  id="enterprisejs" name="enterprisejs"><%suv.write("enterprisejs");%></textarea><label for="enterprisejs"></label></td></tr>
                    </table>
            <button type="button">保存</button>
        </form>
        <%@include file="/inc/js_all.html" %>
        <script src="/js/arealist.js" type="text/javascript"></script>
        <script src="js/liandong.js" type="text/javascript"></script>
        <script src="/data/dictdata.js" type="text/javascript"></script>
<!--        <script type="text/javascript">
            dictdata['area'] = AreaListData;
        </script>-->
        <script src="js/infor.js" type="text/javascript"></script>
    </body>
</html>